<template>
    <div id="cesiumContainer"></div>
</template>

<script lang="ts" setup>
import { onMounted } from "vue";
//引入cesium 3D球形地图
import { Viewer } from 'cesium';


        //Cesium.Ion.defaultAccessToken = '你的密钥';//输入密钥 
onMounted(() => {
    
    const viewer = new Viewer('cesiumContainer');
    // Load Cesium World Terrain
    viewer.terrainProvider = Cesium.createWorldTerrain({
    requestWaterMask : true, // required for water effects
    requestVertexNormals : true // required for terrain lighting
});


 
    //摄像头查看器
    /* viewer.camera.setView({
        //这个方法去设置精度维度
        destination:Cesium.Cartesian3.fromDegrees(113.318977)
    }) */
    
})
</script>
<style lang="scss" scoped></style>
